package org.dromara.canteen.service;

import org.dromara.canteen.domain.CanteenCertificates;
import org.dromara.canteen.domain.vo.CanteenCertificatesVo;
import org.dromara.canteen.domain.bo.CanteenCertificatesBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.github.yulichang.base.MPJBaseService;
import java.util.Collection;
import java.util.List;

/**
 * 证书管理Service接口
 *
 * @author Gjb
 * @date 2025-07-28
 */
public interface ICanteenCertificatesService extends MPJBaseService<CanteenCertificates> {

    /**
     * 查询证书管理
     */
    CanteenCertificatesVo queryById(Long certificatesId);

    /**
     * 查询证书管理列表
     */
    TableDataInfo<CanteenCertificatesVo> queryPageList(CanteenCertificatesBo bo, PageQuery pageQuery);

    /**
     * 查询证书管理列表
     */
    List<CanteenCertificatesVo> queryList(CanteenCertificatesBo bo);

    /**
     * 新增证书管理
     */
    Boolean insertByBo(CanteenCertificatesBo bo);

    /**
     * 修改证书管理
     */
    Boolean updateByBo(CanteenCertificatesBo bo);

    /**
     * 校验并批量删除证书管理信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
